<template>
  <div>
    <el-row>
      <el-col :span="4">
        <div>
          <el-menu>
            <el-submenu index="1">
              <template slot="title">
                <span>订单中心</span>
              </template>
              <el-menu-item index="1-1" @click="returnMyBuySku">已购买宝贝</el-menu-item>
              <el-menu-item index="1-2" @click="giveComment">评价商品</el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <span>评价管理</span>
              </template>
              <el-menu-item index="2-1" @click="showComment">评价晒单</el-menu-item>
              <el-menu-item index="2-2" @click="renturnSku">退款维权</el-menu-item>
            </el-submenu>
          </el-menu>
        </div>
      </el-col>
      <el-col :span="20">
        <!-- 将路由视图放在这里 -->
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    showComment() {
      this.$router.push({path:'/showComment'}) 
    },
    returnMyBuySku() {
      this.$router.push({path:'/myBuySku'}) 
    },
    giveComment() {
      this.$router.push({path:'/mySkuComment'}) 
    },
    renturnSku() {
      this.$router.push({path:'/returnSku'})
    }
  },
  created() {}
};
</script>

<style>
.custom-submenu {
  margin-left: 30px;
}

.centered-text-button {
  text-align: center;
  /* 水平居中 */
  line-height: 10px;
  /* 垂直居中 */
}
</style>